package com.jymj.entity.landmanage;

import com.jymj.enumEntity.envior.HjzzejEnum;
import com.jymj.enumEntity.envior.HjzzsjEnum;

import java.util.List;

/**
 * Created by ${lc} on 2021/1/7. 环境整治日志 月报实体
 */
public class JournalEntity {
    private String xzqmc;
    private String code;
    private String zhen;
    private Integer fl;//分类
    private String flText;
    private String czlx;
    private String czdl;
    private Integer counts;//数量
    private String remark;//备注
    private List<JournalEntity> journalEntities;

    public String getCzlx() {
        return czlx;
    }

    public void setCzlx(String czlx) {
        this.czlx = czlx;
    }

    public String getFlText() {
        if (getFl() != null && getFl().toString().length() == 3){
            return HjzzejEnum.getName(getFl());
        }
        if (getFl() != null && getFl().toString().length() == 4){
            return HjzzsjEnum.getName(getFl());
        }
        return null;
    }

    public String getXzqmc() {
        return xzqmc;
    }

    public void setXzqmc(String xzqmc) {
        this.xzqmc = xzqmc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getZhen() {
        return zhen;
    }

    public void setZhen(String zhen) {
        this.zhen = zhen;
    }

    public Integer getFl() {
        return fl;
    }

    public void setFl(Integer fl) {
        this.fl = fl;
    }

    public Integer getCounts() {
        return counts;
    }

    public void setCounts(Integer counts) {
        this.counts = counts;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public List<JournalEntity> getJournalEntities() {
        return journalEntities;
    }

    public void setJournalEntities(List<JournalEntity> journalEntities) {
        this.journalEntities = journalEntities;
    }

    public String getCzdl() {
        return czdl;
    }

    public void setCzdl(String czdl) {
        this.czdl = czdl;
    }
}
